/**
 * Created by Jerry on 2017/11/16.
 */
import wepy from 'wepy'

export default  class commonMixin extends wepy.mixin{
    data={

    }

    checkLogin(){
      if(wx.getStorageSync('shop-userInfo')){
        wepy.$instance.globalData.userInfo=JSON.parse(wx.getStorageSync('shop-userInfo')) //缓存userIInfo等信息
        return true
      } else return false
    }
}
